import { View } from "../../../../mvc/core/View";
import { Language } from "../../../../../extend/language/Language";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { EventName } from "../../../mvc/EventName";
import { ItemData } from "../../../resource/info/ItemData";
import { MountConfig } from "../../../resource/MountConfig";
import { ClockManager } from "../../../manager/ClockManager";
import { DateUtil } from "../../../../common/tools/DateUtil";
import { DataEvent } from "../../../events/DataEvent";
import { ObjCreate } from "../../common/ObjCreate";
import { DeployPanelItem } from "../../equipment/deploy/DeployPanelItem";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { MountTileItem } from "../mount/MountTileItem";
import { ImagesConst } from "../../../resource/ImagesConst";
import { MountAttrPanel } from "../mount/MountAttrPanel";
import { LongProgressBar } from "../../player/LongProgressBar";
import { TilePanel } from "../../equipment/TilePanel";
import { MountUpgradeMaterialCellRenderer } from "../cell/MountUpgradeMaterialCellRenderer";
import { DataProvider } from "../../../../../fl/data/DataProvider";
import { PageSelecter } from "../../common/pageSelect/PageSelecter";
import { FilterConst } from "../../../../component/gconst/FilterConst";
import { LoaderHelp } from "../../../../common/display/LoaderHelp";
import { ResFileConst } from "../../../resource/ResFileConst";
import { MountUtil } from "../../../scene/mount/MountUtil";
import { Cache } from "../../../cache/Cache";
import { MsgManager } from "../../../manager/MsgManager";
import { TodayNotTipUtil } from "../../../../common/TodayNotTipUtil";
import { TodayNoTipsConst } from "../../../../component/gconst/TodayNoTipsConst";
import { Alert } from "../../../../../com/mui/controls/Alert";
import { ItemsUtil } from "../../shortcuts/item/ItemsUtil";
import { Button } from "../../../../../fl/controls/Button";
import { BuyAlert } from "../../pet/BuyAlert";
import { EPrictUnit } from "../../../../../Message/Public/EPrictUnit";
import { ExpAddEffect } from "../../effect/ExpAddEffect";
import { ExpAddEffectInfo } from "../../../resource/info/ExpAddEffectInfo";
import { AttributeTextType } from "../../../scene/player/type/AttributeTextType";
import { ItemExInfo } from "../../../resource/info/ItemExInfo";
import { GameConst } from "../../../../component/gconst/GameConst";
import { CalcUtil } from "../../common/util/CalcUtil";
import { EVIPType } from "../../../../../Message/Public/EVIPType";
import { EActiveType } from "../../../../../Message/Public/EActiveType";
import { EffectManager } from "../../../manager/EffectManager";
import { GTextFiled } from "../../../../../com/mui/controls/GTextFiled";
import { GButton } from "../../../../../com/mui/controls/GButton";
import { GTextArea } from "../../../../../com/mui/controls/GTextArea";
import { GScrollPane } from "../../../../../com/mui/controls/GScrollPane";
type int = number;
//class MountUpgradePanel
    
    export  class MountUpgradePanel extends View
    {
        constructor()
        {
            super();
            this._baseAttrLabelArray = Language.getString(54553).split(",");
            this._mItemDataArray = [];
            this.init();
            Dispatcher.addEventListener(EventName.MountAdvanceGoMountAdvanceSuccess, this.onMountUpgradeSuccessHandler);
            return;
        }

        public updateInfo(arg1: ItemData): void
        {
            var loc1=null;
            var loc2=0;
            this.dealVipShowTenBtn(false);
            this.metrialUpdate();
            this._cItemData = arg1;
            if (this._cItemData) 
            {
                this._currentItem.itemData = this._cItemData;
                this._feedLevel = this._cItemData.itemExInfo.mount_level;
                this._feedLevelTxt.text = Language.getStringByParam(71507, this._feedLevel);
                this._starLevel = this._cItemData.itemExInfo.m_adv_lv;
                this._starLevelTxt.text = Language.getStringByParam(71508, this._starLevel + "☆");
                this._levelTxt.text = Language.getStringByParam(71517, this._starLevel + "☆");
                this._bestItem.itemData = this.getHeightestMount();
                this._exp = this._cItemData.itemExInfo.m_adv_exp;
                this._needExp = MountConfig.instance.getAdData(this._starLevel).experience;
                loc1 = ClockManager.instance.nowDate;
                loc2 = DateUtil.getTotalDays(loc1);
                if (this._cItemData.itemExInfo.m_adv_date == loc2) 
                {
                    this._upgradeTime = this._cItemData.itemExInfo.m_adv_cnt;
                }
                else 
                {
                    this._upgradeTime = 0;
                }
                this._cost = MountConfig.instance.getMountAdvanceCost(this._upgradeTime + 1);
                this._leftFreeTime = this._freeTime - this._upgradeTime > 0 ? this._freeTime - this._upgradeTime : 0;
                this._tenBtn.toolTipData = Language.getStringByParam(71550, this.getCostByNum(10));
                if (this._leftFreeTime > 0) 
                {
                    this._oneBtn.label = Language.getStringByParam(71518, this._leftFreeTime);
                    this._oneBtn.toolTipData = Language.getString(71520);
                    this._costTx.text = Language.getString(27675) + " 0";
                }
                else 
                {
                    this._oneBtn.label = Language.getString(71534);
                    this._oneBtn.toolTipData = Language.getStringByParam(71521, this._cost);
                    this._costTx.text = Language.getString(27675) + " " + this._cost;
                }
                this._prograssBar.setValue(this._exp, this._needExp);
                this.updateAttr();
                this._mountTileItem.setData(this._cItemData);
            }
            else 
            {
                this.clear();
            }
            return;
        }

        /* internal  */goActiveBtnRequest(): void
        {
            var loc1=this._cItemData.posType;
            var loc2=this._cItemData.uid;
            Dispatcher.dispatchEvent(new DataEvent(EventName.MountAdvanceGoMountAdvance, {"posType": loc1, "count": 0, "mountUid": loc2, "activeOneKey": true}));
            return;
        }

        /* internal  */init(): void
        {
            this._mainSprite = new Object /* flash.display.Sprite */();
            this._mainSprite.mouseEnabled = false;
            addChild(this._mainSprite);
            ObjCreate.createFlowerBg(0, 0, 362, 308, this._mainSprite);
            this._bestItem = new DeployPanelItem(0, false, false, "", false);
            this._bestItem.label = "";
            this._bestItem.x = 29;
            this._bestItem.y = 12;
            this._mainSprite.addChild(this._bestItem);
            ObjCreate.createLoadedBitmap("Label_jipingyulang.png", 2, 64, this._mainSprite);
            this._currentItem = new DeployPanelItem(0, false, false, "", false);
            this._currentItem.label = "";
            this._currentItem.x = 155;
            this._currentItem.y = 33;
            this._mainSprite.addChild(this._currentItem);
            this._bestItem.item.toolTipType = ItemData.ToolTipType_Mounts;
            this._currentItem.item.toolTipType = ItemData.ToolTipType_Mounts;
            this._feedLevelTxt = ObjCreate.createGTextField(Language.getStringByParam(71507, 0), 210, 30, 70, 20, this, GlobalStyle.textFormat6);
            this._feedLevelTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._starLevelTxt = ObjCreate.createGTextField(Language.getStringByParam(71508, 0), 210, 60, 70, 20, this, GlobalStyle.textFormat6);
            this._starLevelTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._mountTileItem = new MountTileItem();
            this._mountTileItem.x = 315;
            this._mountTileItem.y = 45;
            this.addChild(this._mountTileItem);
            ObjCreate.createBg(13, 90, 165, 155, this._mainSprite, ImagesConst.WindowCenterB);
            ObjCreate.createBg(189, 90, 165, 155, this._mainSprite, ImagesConst.WindowCenterB);
            this._cAttrPanel = new MountAttrPanel(this._baseAttrLabelArray, GlobalStyle.textFormat5);
            this._cAttrPanel.x = 32;
            this._cAttrPanel.y = 110;
            this._mainSprite.addChild(this._cAttrPanel);
            this._nAttrPanel = new MountAttrPanel(this._baseAttrLabelArray, GlobalStyle.textFormat5);
            this._nAttrPanel.x = 206;
            this._nAttrPanel.y = 110;
            this._mainSprite.addChild(this._nAttrPanel);
            this._levelTxt = ObjCreate.createGTextField("", 14, 250, 100, 20, this._mainSprite, GlobalStyle.textFormat6);
            this._levelTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._prograssBar = new LongProgressBar();
            this._prograssBar.x = 60;
            this._prograssBar.y = 250;
            this._prograssBar.progressBarClass = ImagesConst.EnergyBar;
            this._prograssBar.setBgSize(280, 16);
            this._prograssBar.setValue(0, 100);
            this._mainSprite.addChild(this._prograssBar);
            this._costTx = ObjCreate.createTextField(Language.getString(27675) + " 0", 45, 279, 108, 20, this, GlobalStyle.textFormat6);
            this._oneBtn = ObjCreate.createGButton(Language.getString(71534), 100, 273, 84, 28, this, "ButtonRed");
            this._oneBtn.name = "1";
            this._tenBtn = ObjCreate.createGButton(Language.getString(71538), 202, 273, 84, 28, this, "ButtonRed");
            this._tenBtn.name = "10";
            this._tenBtn.visible = false;
            this._oneBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onBtnClickHandler);
            this._tenBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onBtnClickHandler);
            this._rightSprite = new Object /* flash.display.Sprite */();
            this._rightSprite.mouseEnabled = false;
            this._rightSprite.x = 365;
            this._rightSprite.y = 0;
            addChild(this._rightSprite);
            ObjCreate.createFlowerBg(0, 0, 172, 400, this._rightSprite);
            this._materialList = new TilePanel();
            this._materialList.x = 5;
            this._materialList.y = 32;
            this._materialList.setSize(164, 262);
            this._materialList.rowHeight = 65;
            this._materialList.columnWidth = 164;
            this._materialList.setStyle("cellRenderer", MountUpgradeMaterialCellRenderer);
            this._materialList.dataProvider = new DataProvider(this._mItemDataArray);
            this._rightSprite.addChild(this._materialList);
            this._allFeedBtn = ObjCreate.createGButton(Language.getString(54188), 40, 308, 86, 25, this._rightSprite, "ButtonRedMini");
            this._allFeedBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onAllFeedClick);
            this._activeBtn = ObjCreate.createGButton(Language.getStringByParam(70275, 0), 40, 340, 86, 25, this._rightSprite, "ButtonRedMini");
            this._activeBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onActiveBtnClick);
            this._pageSelec = ObjCreate.createPageSelecter(18, 375, this._rightSprite, PageSelecter.CompleteMode);
            this._pageSelec.addEventListener(flash.events.Event.CHANGE, this.onMaterialPageChange);
            this._bottomSprite = new Object /* flash.display.Sprite */();
            this._bottomSprite.mouseEnabled = false;
            this._bottomSprite.x = 0;
            this._bottomSprite.y = 310;
            addChild(this._bottomSprite);
            ObjCreate.createFlowerBg(0, 0, 362, 90, this._bottomSprite);
            this._tipTxt = ObjCreate.createTextArea("", 15, 7, 340, 75, this._bottomSprite);
            this._tipTxt.textField.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._tipTxt.textField.filters = [FilterConst.glowFilter];
            this._tipTxt.htmlText = Language.getString(71506);
            this._tipTxt.wordWrap = true;
            LoaderHelp.addResCallBack(ResFileConst.mount, this.onLoadBmResource);
            this.initData();
            this.updateShowedMaterial();
            return;
        }

        protected onActiveBtnClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (!MountUtil.instance.isCanUpgrade(this._cItemData)) 
            {
                return;
            }
            if (Cache.instance.role.money.gold < int(Cache.instance.pack.mountsPackCache.mountUpgradeActiveInfo.cost)) 
            {
                MsgManager.showRollTipsMsg(Language.getString(27957));
                return;
            }
            TodayNotTipUtil.toDayNotTip(TodayNoTipsConst.ActiveMountAdvanceOneKeyToday, this.goActiveBtnRequest, Language.getStringByParam(70276, Cache.instance.pack.mountsPackCache.mountUpgradeActiveInfo.cost, Cache.instance.pack.mountsPackCache.mountUpgradeActiveInfo.value), null, Alert.OK | Alert.CANCEL);
            return;
        }

        protected onAllFeedClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=0;
            var loc2=null;
            var loc3=null;
            if (!MountUtil.instance.isCanUpgrade(this._cItemData)) 
            {
                return;
            }
            if (this._cItemData) 
            {
                loc1 = this._cItemData.posType;
                loc2 = this._cItemData.uid;
                if ((loc3 = this.getAllFeedArr()).length <= 0) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(61331) + "！");
                    return;
                }
                Dispatcher.dispatchEvent(new DataEvent(EventName.MountAdvanceGoFeed, {"posType": loc1, "count": 0, "mountUid": loc2, "materials": loc3, "useAll": true}));
            }
            return;
        }

        /* internal  */getAllFeedArr(): Array<any>
        {
            var loc4=null;
            var loc1=[];
            var loc2=Cache.instance.pack.backPackCache.getAllItems();
            var loc3=loc2.length;
            var loc5=0;
            while (loc5 < loc3) 
            {
                if ((loc4 = loc2[loc5] as ItemData) && !(loc4 == ItemData.nullItemData)) 
                {
                    if (ItemsUtil.isMountAdvance(loc4) || ItemsUtil.isMountAdvancePerfect(loc4)) 
                    {
                        loc1.push(loc4.uid);
                    }
                }
                ++loc5;
            }
            return loc1;
        }

        protected onMaterialPageChange(arg1: Object /* flash.events.Event */): void
        {
            this.updateShowedMaterial();
            return;
        }

        /* internal  */updateShowedMaterial(): void
        {
            this._pageSelec.maxPage = Math.ceil(this._mItemDataArray.length / this.pagesize);
            var loc1=(this._pageSelec.currentPage - 1) * this.pagesize;
            var loc2=this._pageSelec.currentPage * this.pagesize > this._mItemDataArray.length ? this._mItemDataArray.length : this._pageSelec.currentPage * this.pagesize;
            var loc3=this._mItemDataArray.slice(loc1, loc2);
            this._materialList.dataProvider = new DataProvider(loc3);
            return;
        }

        /* internal  */onLoadBmResource(): void
        {
            ObjCreate.createBitmap(ImagesConst.mountCurrentLabel, 8, 82, this._mainSprite);
            ObjCreate.createBitmap(ImagesConst.mountNextLabel, 183, 82, this._mainSprite);
            ObjCreate.createBitmap(ImagesConst.mountUpGradeMaterial, 15, 5, this._rightSprite);
            return;
        }

        /* internal  */initData(): void
        {
            this._mItemDataArray = [];
            this._freeTime = MountConfig.instance.freeTime;
            return;
        }

        public getCostByNum(arg1: int): int
        {
            var loc1=0;
            var loc2=this._upgradeTime + 1;
            var loc3=0;
            while (loc3 < arg1) 
            {
                loc1 = loc1 + MountConfig.instance.getMountAdvanceCost(loc2++);
                ++loc3;
            }
            return loc1;
        }

        /* internal  */onBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=0;
            var loc2=0;
            var loc3=false;
            if (!MountUtil.instance.isCanUpgrade(this._cItemData)) 
            {
                return;
            }
            if (this._cItemData) 
            {
                loc1 = int((arg1.target as Button).name);
                loc2 = this.getCostByNum(loc1);
                if (loc2 > 0) 
                {
                    if (loc3 = BuyAlert.checkMoney(EPrictUnit._EPriceUnitGold, loc2)) 
                    {
                        TodayNotTipUtil.toDayNotTip(TodayNoTipsConst.MountAdvanceGoAdance, this.request, Language.getStringByParam(71532, loc2, loc1), null, Alert.OK | Alert.CANCEL, null, null, null, 4, loc1);
                    }
                }
                else 
                {
                    this.request(loc1);
                }
            }
            return;
        }

        /* internal  */request(arg1: int): void
        {
            var loc1=this._cItemData.posType;
            var loc2=this._cItemData.uid;
            Dispatcher.dispatchEvent(new DataEvent(EventName.MountAdvanceGoMountAdvance, {"posType": loc1, "count": arg1, "mountUid": loc2, "activeOneKey": false}));
            return;
        }

        /* internal  */addGrowthEffect(arg1: int, arg2: Boolean=false): void
        {
            var loc1=localToGlobal(new Object /* flash.geom.Point */(180, 260));
            var loc2;
            (loc2 = new ExpAddEffect(new ExpAddEffectInfo(loc1.x, loc1.y, loc1.x, loc1.y, arg1, 1, AttributeTextType.crit))).playEffect();
            return;
        }

        /* internal  */playValueAddEffect(arg1: int): void
        {
            var loc1=localToGlobal(new Object /* flash.geom.Point */(180, 260));
            var loc2=new ExpAddEffect(new ExpAddEffectInfo(loc1.x, loc1.y, loc1.x, loc1.y, arg1, 1));
            loc2.playEffect();
            return;
        }

        /* internal  */onMountUpgradeSuccessHandler(arg1: DataEvent): void
        {
            var loc1=arg1.data["isCrit"] as Boolean;
            var loc2=arg1.data["addExp"] as int;
            if (loc1) 
            {
                this.addGrowthEffect(loc2, true);
            }
            else 
            {
                this.playValueAddEffect(loc2);
            }
            return;
        }

        /* internal  */getHeightestMount(): ItemData
        {
            var loc1=null;
            var loc2=null;
            if (this._cItemData) 
            {
                loc1 = new ItemData(this._cItemData.itemCode);
                loc2 = new ItemExInfo();
                loc2 = this._cItemData.itemExInfo.duplicate();
                loc2.m_adv_lv = GameConst.MountAdvanceMaxLevel;
                loc1.itemExInfo = loc2;
                return loc1;
            }
            return null;
        }

        /* internal  */updateAttr(): void
        {
            var loc1=0;
            var loc2=null;
            var loc3=null;
            if (this._cItemData && this._cItemData.itemExInfo) 
            {
                loc1 = this._starLevel + 1;
                loc2 = Cache.instance.pack.mountsPackCache.getUpgradeBaseAttrValue(this._cItemData, this._starLevel);
                loc3 = Cache.instance.pack.mountsPackCache.getUpgradeBaseAttrValue(this._cItemData, loc1);
                this._cAttrPanel.updateValue(loc2);
                this._cAttrPanel.updateStarLevel(this._starLevel);
                if (loc1 > GameConst.MountAdvanceMaxLevel) 
                {
                    this._nAttrPanel.clear();
                }
                else 
                {
                    this._nAttrPanel.updateValue(loc3);
                    this._nAttrPanel.updateStarLevel(loc1);
                    this._nAttrPanel.updateAddValue(CalcUtil.getMutiArray(loc2, loc3));
                }
            }
            return;
        }

        public dealVipShowTenBtn(arg1: Boolean): void
        {
            var loc1=0;
            loc1 = Math.max(Cache.instance.vip.vipInfo.VIPType.value(), Cache.instance.role.entityInfo.VIP);
            if (loc1 >= EVIPType._EVIPTypeHalfYear) 
            {
                this._tenBtn.visible = true;
                this._oneBtn.x = 103;
                this._costTx.x = 7;
            }
            else 
            {
                this._tenBtn.visible = false;
                this._oneBtn.x = 158;
                this._costTx.x = 45;
            }
            return;
        }

        public metrialUpdate(): void
        {
            var loc2=null;
            var loc4=0;
            this._mItemDataArray = [];
            this._mItemDataArray.push(new ItemData(14106201));
            this._mItemDataArray.push(new ItemData(14106301));
            this._mItemDataArray.push(new ItemData(14106401));
            this._mItemDataArray.push(new ItemData(14106501));
            var loc1=Cache.instance.pack.backPackCache.getAllItems();
            var loc3=1;
            while (loc3 < 13) 
            {
                loc4 = 0;
                while (loc4 < loc1.length) 
                {
                    loc2 = loc1[loc4];
                    if (loc2) 
                    {
                        if (ItemsUtil.isMountAdvancePerfect(loc2) && loc2.itemInfo.item.itemLevel == loc3) 
                        {
                            this._mItemDataArray.push(new ItemData(loc2.itemCode));
                            break;
                        }
                    }
                    ++loc4;
                }
                ++loc3;
            }
            this.updateShowedMaterial();
            return;
        }

        public clear(): void
        {
            this._currentItem.itemData = null;
            this._bestItem.enabled = true;
            this._prograssBar.setValue(0, 0);
            this._feedLevelTxt.text = "";
            this._starLevelTxt.text = "";
            this._levelTxt.text = "";
            return;
        }

        public updateActiveBtn(): void
        {
            var loc1=Cache.instance.active.isActiveInEffect(EActiveType._EActiveTypeMountAdvanceOneKey);
            var loc2=Cache.instance.pack.mountsPackCache.mountUpgradeActiveInfo.times - Cache.instance.pack.mountsPackCache.mountUpgradeActiveUseTimes;
            if (loc1) 
            {
                this._activeBtn.visible = true;
                this._activeBtn.label = Language.getStringByParam(70275, loc2);
                this._activeBtn.toolTipData = Language.getStringByParam(70277, Cache.instance.pack.mountsPackCache.mountUpgradeActiveInfo.cost, Cache.instance.pack.mountsPackCache.mountUpgradeActiveInfo.value, Cache.instance.pack.mountsPackCache.mountUpgradeActiveInfo.times);
                if (loc2 > 0) 
                {
                    this._activeBtn.enabled = true;
                }
                else 
                {
                    this._activeBtn.enabled = false;
                }
            }
            else 
            {
                this._activeBtn.visible = false;
            }
            return;
        }

        public shineActiveBtn(): void
        {
            var loc1=Cache.instance.active.isActiveInEffect(EActiveType._EActiveTypeMountAdvanceOneKey);
            var loc2=Cache.instance.pack.mountsPackCache.mountUpgradeActiveInfo.times - Cache.instance.pack.mountsPackCache.mountUpgradeActiveUseTimes;
            if (loc1 && loc2 > 0) 
            {
                EffectManager.glowFilterReg(this._activeBtn, [FilterConst.guideTipsFilter], 0.6, 10, 5, 5);
            }
            return;
        }

        /* internal */ /* var */_exp: int;

        /* internal */ /* var */_feedLevel: int;

        /* internal */ /* var */_needExp: int;

        /* internal */ /* var */_cost: int;

        /* internal */ /* var */_starLevelTxt: GTextFiled;

        /* internal */ /* var */_upgradeTime: int;

        /* internal */ /* var */_costTx: Object /* flash.text.TextField */;

        /* internal */ /* var */_allFeedBtn: GButton;

        /* internal */ /* var */_activeBtn: GButton;

        /* internal */ /* var */_mainSprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_rightSprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_leftFreeTime: int;

        /* internal */ /* var */_bottomSprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_bestItem: DeployPanelItem;

        /* internal */ /* var */_currentItem: DeployPanelItem;

        /* internal */ /* var */pagesize: int=4;

        /* internal */ /* var */_feedLevelTxt: GTextFiled;

        /* internal */ /* var */_mountTileItem: MountTileItem;

        /* internal */ /* var */_cAttrPanel: MountAttrPanel;

        /* internal */ /* var */_nAttrPanel: MountAttrPanel;

        /* internal */ /* var */_levelTxt: GTextFiled;

        /* internal */ /* var */_prograssBar: LongProgressBar;

        /* internal */ /* var */_oneBtn: GButton;

        /* internal */ /* var */_tenBtn: GButton;

        /* internal */ /* var */_materialList: TilePanel;

        /* internal */ /* var */_mItemDataArray: Array<any>;

        /* internal */ /* var */_pageSelec: PageSelecter;

        /* internal */ /* var */_tipTxt: GTextArea;

        /* internal */ /* var */_contentPane: GScrollPane;

        /* internal */ /* var */_baseAttrLabelArray: Array<any>;

        /* internal */ /* var */_freeTime: int=0;

        /* internal */ /* var */_cItemData: ItemData;

        /* internal */ /* var */_starLevel: int;
    }
